'use strict'
var mongoose = require('mongoose');

var orderItemSchema = mongoose.Schema({	
	  name:String,
	  count:Number,
	  price:Number
});

var schema = mongoose.Schema({
	  wxid:String,
	  name:String,
	  items:[orderItemSchema],
	  phone:Number,
	  address:Number,
	  status:Number,
	  remark:String,
	  price:Number,
	  time:Date,
	  uuid:String
})


var Weixinorder=mongoose.model('weixinorders', schema)

module.exports = Weixinorder;


